/*
 * Copyright 2009 Prime Technology.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package test;

import java.io.Serializable;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;

@ManagedBean(name = "tableBean")
@ViewScoped
public class TableBean implements Serializable {

    public TableBean() {
        cars = new Car[10];
        cars[0] = new Car("CRV", 2005, "Honda", "Red");
        cars[1] = new Car("CRV", 2009, "Honda", "Red");
        cars[2] = new Car("CRV", 2011, "Honda", "Red");
        cars[3] = new Car("CRV", 2001, "Honda", "Red");
        cars[4] = new Car("CRV", 1999, "Honda", "Red");
        cars[5] = new Car("CRV", 2003, "Honda", "Red");
        cars[6] = new Car("CRV", 2002, "Honda", "Red");
        cars[7] = new Car("CRV", 2007, "Honda", "Red");
        cars[8] = new Car("CRV", 2004, "Honda", "Red");
        cars[9] = new Car("CRV", 2000, "Honda", "Red");


    }
    private Car[] cars;

    public  Car[] getCars() {
        return cars;
    }

    public void setCars(Car[] cars) {
        this.cars = cars;
    }
    
}